<?php
$db = new PDO ('mysql:host=localhost; dbname=db3','root','12qwas');
$ps =$db->prepare('select * from students where age>=?');
$ps->execute([19]);
foreach ($ps as $r){
    echo "{$r['xh']}\t{$r['name']}\t{$r['age']}\n";
}